import Vue from 'vue'
import './directives/actions'
import permissionHelper from './permissionHelper'

import {
    Button,
    Row,
    Col,
    Menu,
    MenuItem,
    Submenu,
    Tooltip,
    Breadcrumb,
    BreadcrumbItem,
    Form,
    Input,
    Select,
    Option,
    Dialog,
    Table,
    TableColumn,
    Message,
    Upload,
    Dropdown,
    DropdownItem,
    DropdownMenu,
    Tree,
    Cascader,
    CascaderPanel,
    RadioGroup,
    Radio,
    RadioButton,
    Progress
} from 'element-ui'

Vue.use(Button)
Vue.use(Row)
Vue.use(Col)
Vue.use(Menu)
Vue.use(MenuItem)
Vue.use(Submenu)
Vue.use(Tooltip)
Vue.use(Breadcrumb)
Vue.use(BreadcrumbItem)
Vue.use(Form)
Vue.use(Input)
Vue.use(Select)
Vue.use(Option)
Vue.use(Dialog)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Upload)
Vue.use(Dropdown)
Vue.use(DropdownItem)
Vue.use(DropdownMenu)
Vue.use(Tree)
Vue.use(Cascader)
Vue.use(CascaderPanel)
Vue.use(RadioGroup)
Vue.use(Radio)
Vue.use(RadioButton)
Vue.use(Progress)
// message 注意
Vue.prototype.$message = Message
// v-if 的权限控制
Vue.use(permissionHelper)
